package com.atguigu.spring.bean;

/**
 * @author 孙志鹏
 * @create 2021-06-09 14:46
 */
public class Person {

    private String name;

    private Dog dog;

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    public Dog getDog() {
        return this.dog;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", dog=" + dog +
                '}';
    }
}
